package cn.com.dycc.sys_manage.post.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.dycc.sys_manage.post.entity.PostEntity;
import cn.com.dycc.sys_manage.post.param.FindListPostParam;
import cn.com.dycc.sys_manage.post.param.PostParam;

public interface PostService {
	
	/**
	 * 增加岗位信息
	 * @param request HttpServletRequest request,
	 * @param postParam
	 * @return
	 * @throws PostNotFondException
	 */
	public String addPost(HttpServletRequest request,PostParam postParam)throws PostNotFondException;
	
	/**
	 * 查询所有的岗位信息
	 * @param request HttpServletRequest request,
	 * @param findListPostParam
	 * @return
	 * @throws PostNotFondException
	 */
	public List<PostEntity> findPostAll(HttpServletRequest request,FindListPostParam findListPostParam)throws PostNotFondException;
	
	/**
	 * 更新所有岗位信息 HttpServletRequest request, 
	 * @param request
	 * @param postParam
	 * @return
	 * @throws PostNotFondException
	 */
	public String updatePost(HttpServletRequest request, PostParam postParam)throws PostNotFondException;
	
	/**
	 * 删除岗位信息
	 * @param request
	 * @param id
	 * @return
	 * @throws PostNotFondException
	 */
	public String delPost(HttpServletRequest request,String id)throws PostNotFondException;
	
	/**
	 * 查询所有的岗位信息 统计
	 * @param request HttpServletRequest request,
	 * @param findListPostParam
	 * @return
	 * @throws PostNotFondException
	 */
	public String findPostAllCount(HttpServletRequest request,FindListPostParam findListPostParam)throws PostNotFondException;
	
}
